package com.zkthink.ceres.applet.commission.domain.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**

@Author cmz
@Date 2024-05-14 15:24
*/
@Data
@TableName(value = "applet_commission")
public class AppletCommission {
    /**
     * 推荐人消费提成
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 产生消费的用户
     */
    @TableField(value = "mid")
    private Long mid;

    /**
     * 支付金额
     */
    @TableField(value = "pay_sum")
    private BigDecimal paySum;

    /**
     * 直接提成金额
     */
    @TableField(value = "direct_commission")
    private BigDecimal directCommission;

    /**
     * 直接提成比率
     */
    @TableField(value = "direct_commission_ratio")
    private BigDecimal directCommissionRatio;

    /**
     * 间接提成金额
     */
    @TableField(value = "indirect_commission")
    private BigDecimal indirectCommission;

    /**
     * 间接提成比率
     */
    @TableField(value = "indirect_commission_ratio")
    private BigDecimal indirectCommissionRatio;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改人
     */
    @TableField(value = "update_user")
    private String updateUser;

    @TableField(value = "direct_mid")
    private String directMid;

    @TableField(value = "indirect_mid")
    private String indirectMid;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_MID = "mid";

    public static final String COL_PAY_SUM = "pay_sum";

    public static final String COL_DIRECT_COMMISSION = "direct_commission";

    public static final String COL_DIRECT_COMMISSION_RATIO = "direct_commission_ratio";

    public static final String COL_INDIRECT_COMMISSION = "indirect_commission";

    public static final String COL_INDIRECT_COMMISSION_RATIO = "indirect_commission_ratio";
}